import {createApp} from 'vue'
import {createRouter, createWebHistory} from 'vue-router'
import App from './App.vue'
import routes from "@/router/router";
//引入element-plus
import ElementPlus from 'element-plus'
//引入element-plus相关样式
import 'element-plus/dist/index.css'

//import '../src/styles/page.css'
import axios from 'axios'


const router = createRouter({
    history: createWebHistory(),
    routes: routes
})

const app = createApp(App)

app.use(router)
app.use(ElementPlus)
//全局属性配置，在任意组件内可以使用this.$http获取axios对象
axios.defaults.baseURL='http://localhost:8888/cc';
app.config.globalProperties.$http = axios

app.mount('#app')
